package com.galaxy.payment.api;

import com.galaxy.common.core.domain.R;
import com.galaxy.common.core.validate.EditGroup;
import com.galaxy.payment.config.FeignConfig;
import com.galaxy.payment.domain.OrderBo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 商品服务接口
 */
@FeignClient(
    contextId = "RemoteDeviceService",
    value = "galaxy-order",
    fallbackFactory = RemoteOrderFallbackFactory.class,
    configuration = FeignConfig.class
)
public interface RemoteOrderService {

    /**
     *
     *
     * @return 商品信息
     */
    @PutMapping("/api/order/order")
    R<Boolean> edit(@RequestBody OrderBo bo) ;
}
